# 上一级文件目录中的其他文件夹中打开
with open(r"..\b_file\aa.txt", mode="r", encoding='utf-8') as f:
    print(f.read())

# ab.py